<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>比较两个数字的大小</title>
    <script>
        var A = 15
        var B = 14

        if (A > B) {
            console.log(A + '大于' + B)
        } else if (A < B) {
            console.log(A + '小于' + B)
        } else {
            console.log(A + '等于' + B)
        }
    </script>
</head>

<body>

</body>

</html>